#include<stdio.h>
#include<string.h>
int main() {
    char* arr[5] = { "red", "blue", "yellow", "green", "black" };
    char find[5] = { 0 };
    scanf("%s", find);
    for (int i = 0; i < 5; i++) {
        if (!strcmp(arr[i], find)) {
            printf("%d\n", i + 1);
            return 0;
        }
    }
    printf("Not Found\n");
    return 0;
}